package com.bf.hotpoint.repository.mongo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

import com.bf.hotpoint.domain.Info;


@Repository
public class InfoMongoRepository
{
	@Autowired
	private MongoTemplate mongoTemplate;
	
	public void addInfo(Info info)
	{
		if(info != null){
			mongoTemplate.save(info);
		}
	}
}